﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsRepairRecord _CsRepairRecord = null;
        /// <summary>
        /// 获取ICsAcceptItem实现业务的实例
        /// </summary>
        /// <returns>IConfig</returns>
        public static ICsRepairRecord CreateCsRepairRecord()
        {
            if (_CsRepairRecord == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.CsRepairRecord";
                _CsRepairRecord = (ICsRepairRecord)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _CsRepairRecord;
        }
    }


    public interface ICsRepairRecord
    {
        /// <summary>
        /// 获取RepairRecord空表结构
        /// </summary>
        /// <returns></returns>
        DataTable GetEmptyDataRepairRecords();


        bool InsertDatatableToSysTem(DataTable dt);
    }


}
